package com.jiazhong.spring.ioc.xml;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class DemoA {
    private Integer id;
    private String name;
    private Character gender;
    private Integer age;
    private Double weight;
    private String address;

    public DemoA() {
        System.out.println("1");
    }

    public DemoA(Integer id, String name, Character gender, Integer age, Double weight, String address) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.weight = weight;
        this.address = address;
        System.out.println("2");
    }

    public DemoA(String name) {
        this.name = name;
        System.out.println("3");
    }

    public DemoA(String name, Character gender, Integer age) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        System.out.println("4");
    }

    public DemoA(String name, Double weight, Integer age) {
        this.name = name;
        this.weight = weight;
        this.age = age;
        System.out.println("5");
    }
}
